package org.progin.cloudfolder.msg;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public interface Payload {
	public byte getId();
	public void write(DataOutputStream os) throws IOException;
	public void read(DataInputStream is) throws IOException;

	public static final byte LOGIN 		= 6;
	public static final byte REVINFO 	= 5;
	public static final byte GETREV 	= 4;
	public static final byte ERROR 		= 0;
	public static final byte DELETE 	= 3;
	public static final byte SAVE 		= 2;
	public static final byte OK 		= 1;
	public static final byte GOTOREV 	= 7;
	public static final byte LOGOUT 	= 8;
}
